package com.yige.service;

import com.mongodb.DBObject;

import java.util.List;
import java.util.Set;

/**
 * Created by sunhao on 2015/9/22 0022.
 */
public interface TeacherService extends BasicMongoService {

    /**查找教师所有课程*/
    List<DBObject> findAllLessonForTeacher(Object teacherId);

    /**为教师绑定课程*/
    boolean bingLessonForTeacher(Object teacherId, Object lessonId);

    /**为教师解除课程*/
    boolean removeLessonForTeacher(Object teacherId, Object lessonId);

    /**为教师修改课程*/
    boolean updateLessonForTeacher(Object teacherId, List<DBObject> lessons);

    /**查找教师所有学生*/
    List<DBObject> findAllStudentForTeacher(Object teacherId);

    /**为教师绑定学生*/
    boolean bindStudentForTeacher(Object teacherId, Object studentId);

    /**为教师解除学生*/
    boolean removeStudentForTeacher(Object teacherId, Object studentId);

    /**为教师修改学生*/
    boolean updateStudentForTeacher(Object teacherId, List<DBObject> students);

    /**为教师查找工资*/
    List<DBObject> findSalaryForTeacher(Object teacherId);

    /**为教师添加工资*/
    boolean addSalaryForTeacher(Object teacherId, Object salaryId);

    /**为教师删除工资*/
    boolean removeSalaryForTeacher(Object teacherId, Object salaryId);

    /**为教师更改工资*/
    boolean updateSalaryForTeacher(Object teacherId, List<DBObject> salaryList);

    /**为教师插入教学记录*/
    boolean insertTeachInfo(Object teacherId,Set<String> teachInfo);

}
